{% extends "base1.html" %}
{% load staticfiles %}

    {% block private_css %}
    <link href="{% static 'css/register.css' %}" rel="stylesheet">
  
    {% endblock %}

{% block content %}
     <!-- contain -->
     <div class="container-fluid">
     <div class="row">
       <div id="loginForm" class="col-xs-offset-3 col-xs-6">
	   <div id="loginImg"><img src="{%static 'img/indexLogo.png' %}"/></div>
       <form role="form" action="/Accounts/register/" method="POST" autocomplete="off">
           <div class="form-group">
           <div><div class="reg_mess">
            <span class="glyphicon glyphicon-user">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.user }}
            <span id="user_remind" style="display:none;" class="error_msg1"></span>
            {%  if obj1.errors.user %}
                <span id="user_error" class="error_msg">{{ obj1.errors.user.0 }}</span>
            {% endif %}
            </div>
            </div> 

        <div><div class="reg_mess" >
        <span class="glyphicon glyphicon-heart-empty">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.nickname }}
            <span id="nickname_remind" class="error_msg1"></span>
            {%  if obj1.errors.nickname %}
                <span id="nickname_error" class="error_msg">{{ obj1.errors.nickname.0 }}</span>
            {% endif %}
            </div>
        </div>

        <div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd }}
            <span id="pwd_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd %}
                <span id="pwd_error" class="error_msg">{{ obj1.errors.pwd.0 }}</span>
            {% endif %}
            </div>
        </div>
        
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd2 }}
            <span id="pwd2_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd2 %}
                <span id="pwd2_error" class="error_msg">{{ obj1.errors.pwd2.0 }}</span>
            {% endif %}
            </div>
        </div>
        
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-envelope"></span></div>
        <div class="reg_mess_input">
            {{ obj1.email }}
            <span id="email_remind" class="error_msg1"></span>
            {%  if obj1.errors.email %}
                <span id="email_error" class="error_msg">{{ obj1.errors.email.0 }}</span>
            {% endif %}    
            </div>
           <button id="regBtn" type="submit" class="form-control btn btn-primary center-block">注册</button>
           </div>
       </form>
       </div>
    </div>
    </div>
   {% endblock %}

   {% block other_script %}
    <script type="text/javascript" src="{% static 'js/register.js' %}"></script>
   {% endblock %}